<%-- 
    Document   : XemChiTietSanPhamSubpage
    Created on : May 22, 2011, 2:21:15 PM
    Author     : ToanNhan
--%>

<%@page import="Pojos.SanPham"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<% SanPham sp = (SanPham) request.getAttribute("sanPham");%>
<table width="100%" border="1px">
    <tr align="center">
        <td width="80%">
            <table width="100%" border="1px">
                <td width="35%" valign="middle" align="center">
                    <img alt="<%=sp.getMaSanPham()%>" src="/WebsiteBanHang<%=sp.getHinhSanPham()%>" width="200px" height="200px"/>
                </td>
                <td>
                    <table width="100%" border="1px">
                        <tr>
                            <td>
                                Tên sản phẩm:
                            </td>
                            <td>
                                <%=sp.getTenSanPham()%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Xuất xứ:
                            </td>
                            <td>
                                <%=sp.getXuatXu()%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Bảo hành:
                            </td>
                            <td>
                                <%=sp.getBaoHanh()%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Số lược xem:
                            </td>
                            <td>
                                <%=sp.getSoLuotXem()%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Số lược mua:
                            </td>
                            <td>
                                <%=sp.getSoLuotMua()%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Giá bán:
                            </td>
                            <td>
                                <strong><font color="red"><%=sp.getGiaBan()%></font></strong> VNĐ
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left">
                                <a href="#">Cho vào giỏ hàng</a>
                            </td>
                        </tr>
                    </table>
                </td>
            </table>
            <%request.setAttribute("sanPham", null);%>
        </td>
    </tr>
    <tr>
        <td width="100%">
            <table width="100%" id="tableThongTinChiTiet">
                <tr>
                    <td>
                        <span style="padding-left: 20px"><font size="+1" color="RED">Thông tin chi tiết</font> </span>
                    </td>
                </tr>
                <tr >
                    <td id="thongTinChiTiet" align="center">
                        <%String chiTiet = (String) request.getAttribute("thongTinChiTiet");
                                    out.print(chiTiet);
                        %>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
